﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using InmobiliariaNegocio;

namespace InmobiliariaIntefaz
{
    public partial class frmCalcular : Form
    {
        private Inmobiliaria inmobiliaria;

        public frmCalcular(Inmobiliaria inmob)
        {
            InitializeComponent();
            inmobiliaria = inmob;
        }

        private void btnCalcular_Click(object sender, EventArgs e)
        {
            lblTotal.Text = inmobiliaria.Calcular(dateTimePicker.Value.Month).ToString();
        }

        private void btnLimpiarTotal_Click(object sender, EventArgs e)
        {
            lblTotal.Text = "";
        }
    }
}
